package design_pattern.singleton;

public class Singleton2 {
    private static Singleton2 uniqueSt = null;
    private Singleton2() {}

    public static synchronized Singleton2 getInstance() {
        if (uniqueSt == null) uniqueSt = new Singleton2();
        return uniqueSt;
    }

}
